package com.dzjcloud.dzj.upms.api.form;

import cn.hutool.crypto.SecureUtil;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;

/**
 * <h3>satoken</h3>
 * <p>登录表单</p>
 *
 * @author : DongZeJian
 * @date : 2021-04-27 17:25
 **/
@ApiModel("登录表单")
@Data
public class doLoginForm implements Serializable {

    @ApiModelProperty(value = "用户账号",required = true)
    @NotBlank(message = "用户账号不能为空")
    private String userName;

    @ApiModelProperty(value = "用户密码",required = true)
    @NotBlank(message = "用户密码不能为空")
    private String password;

    @ApiModelProperty(value = "验证码",required = true)
    @NotBlank(message = "验证码不能为空")
    private String verification;

    @ApiModelProperty("是否记住我")
    private Boolean remember=false;

    public void setVerification(String verification){
        this.verification=verification.toLowerCase();
    }


}
